
#include <stdio.h>
#include <math.h>
#include  "Imagen.h"
#include "Point.h"

//constructors
	Point::Point(){
	x=0;
	y=0;
	}


    Point::Point(double x2,double y2){
	x=x2;
	y=y2;
	}


//class operators
double Point::operator*(Point point2){
	double x_tmp= point2.x*x;
	double y_tmp =point2.y*y;
	return x_tmp + y_tmp;
	}


void Point::operator+=(Point& point2){
	x += point2.x;
	y += point2.y;
	}



void Point::operator-=(Point& point2){
        point2.x=point2.x-x;
	point2.y=point2.y-y;
	}



Point Point::operator+(Point& point2){
	Point newPoint(x+point2.x, y+point2.y);
	return newPoint;
	}


Point Point::operator-(Point& point2){
    Point newPoint(x-point2.x, y-point2.y);
    return newPoint;
    }

Point Point::operator/(double dt){
    Point tmpPoint;
    tmpPoint.x=x/dt;
    tmpPoint.y=y/dt;
    return tmpPoint;
    }


Point Point::operator*(double dt){
     Point tmpPoint;
     tmpPoint.x=x*dt;
     tmpPoint.y=y*dt;
      return tmpPoint;
    }
